:root {
  font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;

  color-scheme: light dark;
  color: rgba(255, 255, 255, 0.87);
  background-color: #242424;

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  place-items: center;
  min-width: 320px;
  min-height: 100vh;
}

h2 {
  padding-top: 1rem;
  line-height: 1.3;
  font-weight: 400;
}


button {
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0.6em 1.2em;
  font-size: 1em;
  font-weight: 500;
  font-family: inherit;
  background-color: #1a1a1a;
  cursor: pointer;
  transition: border-color 0.25s;
}

button:hover {
  border-color: #57A5E0;
}

button:focus,
button:focus-visible {
  outline: 4px auto -webkit-focus-ring-color;
}

canvas {
  aspect-ratio: 1;
  max-width: 700px;
  max-height: 700px;
  margin: 1rem;
}


.container {
  display: none;
  align-items: center;
}

@media (min-width: 868px) {
  canvas {
    height: 50vw;
    width: 50vw;
  }
}

@media (max-width: 867px) {
  .container {
    flex-direction: column;
  }

  img {
    width: 70%;
    height: 70%;
  }

  canvas {
    width: 100%;
    height: 100%;
  }

  h2 {
    font-size: 1.3rem;
  }
}

.text-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: start;
  padding: 2rem;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.fade {
  animation: fadeIn 1s ease-in-out 1s forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}